package com.demo.rediscaffeine.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author：nihongyu
 * @date: 2023/4/19
 */
@Data
@ConfigurationProperties(prefix = "rediscaffeine")
@Component
public class RedisCaffeineProperties {
    private Boolean allowNull = true;
    private Integer init = 100;
    private Integer max = 1000;
    private Long expireAfterWrite ;
    private Long expireAfterAccess;
    private Long refreshAfterWrite;
    private Long redisExpire;
}
